class CreateIncidents < ActiveRecord::Migration
  def self.up
    create_table :incidents do |t|
      t.datetime :date_detection
      t.integer :machine_id
      t.integer :type_incident_id
      t.datetime :date_resolution

      t.timestamps
    end
  end

  def self.down
    drop_table :incidents
  end
end
